﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using SMSSnew.DATA;
using SMSSnew.CLASSES;

namespace SMSSnew.UI
{
    public partial class profile : System.Web.UI.Page
    {
        string userName;

        protected void Page_Load(object sender, EventArgs e)
        {

            userName = Session["username"].ToString();

            profileDA myprofile = new profileDA();
            DataTable dt1;

            dt1 = myprofile.loadUser(userName);


            if (dt1.Rows.Count != 0)
            {
                txtfullName.Text = dt1.Rows[0][0].ToString();
                txtemail.Text = dt1.Rows[0][1].ToString();
                txtphoneNumber.Text = dt1.Rows[0][2].ToString();
            }

        }

        protected void ButUnamePword_Click(object sender, EventArgs e)
        {
            Response.Redirect("ChangeUnamePwrd.aspx");
        }
    }
}
